<template>
  <div class="goold-list banxin flex">
    <GoodListItem
      v-for="item in arr"
      :key="item.id"
      :data="item"
    ></GoodListItem>
  </div>
</template>
 
<script>
import GoodListItem from "./GoodListItem.vue";
export default {
  props: ["arr"],
  data() {
    return {};
  },
  components: { GoodListItem },
};
</script>
 
<style lang = "less" scoped>
.goold-list {
    flex-wrap: wrap;
    .good-list-item {
        margin-right: 20px;
        margin-bottom: 20px;
        &:nth-child(4n){
            margin-right: 0;
        }
    }
}
</style>